package za.co.dylanjaneke.airdownloader.command
{
	import mx.rpc.http.HTTPService;
	
	import za.co.dylanjaneke.airdownloader.events.LogoutEvent;

	/**
	 * Author: Dylan Janeke.
	 */
	[Name("logoutCommand")]
	public class LogoutCommand
	{
		[Observer]
		public function handleLogoutEvent(event:LogoutEvent): void
		{
			var logoutService:HTTPService= new HTTPService();
			logoutService.url= "http://www.sidereel.com/users/sign_out";
			logoutService.send();
		}		
	}
}